import java.util.*;
public class Driver{
	public static void main(String[] args) {
		//examples of ICSFormat. Its a class with a private constructor and static classes. returns error msg
		System.out.println(ICSFormat.valid_syntax("date","text_field_id1","12/30/2013"));
		System.out.println(ICSFormat.valid_syntax("date","text_field_id2","3-4-13"));
		System.out.println(ICSFormat.valid_syntax("date","text_field_id3","13/32/2013"));//invalid
		System.out.println(ICSFormat.valid_syntax("time","text_field_id4","4:30 pm"));
		System.out.println(ICSFormat.valid_syntax("time","text_field_id4","23:02"));
		System.out.println(ICSFormat.valid_syntax("time","text_field_id4","25:02"));//invalid
		System.out.println(ICSFormat.valid_syntax("text","text_field_id4","Is web safe? Sometimes, important!"));
		System.out.println(ICSFormat.valid_syntax("text","text_field_id4","safe) && (sql_inject!=true)"));//invalid


		//example of FileMaker. accepts attributes for event AND calendar. generates .ics file
		FileMaker test = new FileMaker();
		test.set_attribute("VERSION","1.0","calendar");
		test.set_attribute("CALSCALE","GREGORIAN","calendar");

		test.set_attribute("SUMMARY","Exam Study");
		test.set_attribute("DESCRIPTION","study for exam information and details");
		test.set_attribute("DTSTART;TZID=Pacific/Honolulu","20130814T100000");
		test.set_attribute("DTEND;TZID=Pacific/Honolulu","20130814T130000");
		test.set_attribute("LOCATION","Hamilton Library");

		test.generate();
	}
}
